
package org.gmote.common;

import org.gmote.common.packet.AbstractPacket;

/**
 * Interface for classes that need to receive data from an opened tcp
 * connection.
 * 
 * @author Marc
 * 
 */
public interface DataReceiverIF {
  /**
   * Handles data that was received on a connection.
   * 
   * @param packet
   */
  void handleReceiveData(AbstractPacket packet, TcpConnection connection);
}
